package model;

public class TransitionPlaceArc extends Arc{

	private final Transition from;
	private final Place to;

	public TransitionPlaceArc(final Transition from, final Place to) {
		this(from, to, 1);
	}
	public TransitionPlaceArc(final Transition from, final Place to, final int multiplicity) {
		super(multiplicity);
		this.from = from;
		this.to = to;
	}
	
	@Override
	public void accept(final ArcVisitor visitor) {
		visitor.visit(this);
	}
	public Transition getFrom() {
		return from;
	}
	public Place getTo() {
		return to;
	}
}
